export function getTimeDiff(timestamp) {
  var currentTime = Date.now();
  var timeDiff = currentTime - timestamp;
  var dayDiff = Math.floor(timeDiff / (1000 * 60 * 60 * 24));

  if (dayDiff <= 7) {
    return dayDiff + "天";
  } else if (dayDiff <= 21) {
    return Math.floor(dayDiff / 7) + "周";
  } else if (dayDiff <= 90) {
    return Math.floor(dayDiff / 30) + "个月";
  } else {
    return null;
  }
}
